package com.example.micro.mysql.deadlock.controller;

import com.example.micro.mysql.deadlock.service.InjectionAService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class InjectionController {

    @Resource
    private InjectionAService injectionAService;

    @RequestMapping("/indexA")
    public String testA() {
        injectionAService.print();
        return "";
    }

}
